<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/28
 * Time: 17:52
 */

include "config.php";

$uses = isset($_REQUEST["unameA"]) ? $_REQUEST["unameA"] : "";

$isExistUser = "SELECT*FROM userinfo WHERE u_name=? ;";

$stmt = $conn->prepare($isExistUser);
$stmt->bind_param("s", $uses);
$stmt->execute();
$result = $stmt->get_result();

if($result->num_rows >= 1){
    print_r("false");
} else {
    print_r("true");

}